package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.entity.ProductSku
   @Description: 该类的功能描述
   @date: 2021/11/6 17:16 
*/
    

/**
    * 商品sku表
    */
@Data
@TableName(value = "product_sku")
public class ProductSku {
    @TableId(value = "sku_id", type = IdType.ASSIGN_ID)
    private Long skuId;

    /**
     * 规格名称
     */
    @TableField(value = "sku_name")
    private String skuName;

    /**
     * 规格对应的值
     */
    @TableField(value = "sku_name_value")
    private String skuNameValue;

    /**
     * 0表示删除 1表示正常
     */
    @TableField(value = "sku_status")
    private Integer skuStatus;

    /**
     * 外键 对应的商品ID
     */
    @TableField(value = "p_id")
    private Long pId;

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_SKU_NAME = "sku_name";

    public static final String COL_SKU_NAME_VALUE = "sku_name_value";

    public static final String COL_SKU_STATUS = "sku_status";

    public static final String COL_P_ID = "p_id";
}